<template>
  <div class="blue">
    <p>{{num}}</p>
  </div>
</template>

<script>
export default {
  //忽略Eslint警告  /*eslint-disable*/ 
  name: "Count",
  data() {
    return {
      //一般我们在发布信息之前，需要一个初始值
      count: 0,
    };
  },
  props:["num"],
  methods: {
    
  },
};
</script>

<style>
.blue {
  height: 100px;
  background-color: blue;
}
</style>